package com.yunji.hushuang;

import java.io.Serializable;
import java.util.List;

/**
 * @author hushuang
 * @since 2019/10/14
 */
public class Person implements Cloneable, Serializable {

    private String name;
    private List<String> hobbies;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getHobbies() {
        return hobbies;
    }

    public void setHobbies(List<String> hobbies) {
        this.hobbies = hobbies;
    }

    @Override
    public Person clone() {
        try {
            return (Person) super.clone();
        } catch (CloneNotSupportedException e) {
            return null;
        }
    }
}
